<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title">添加课程</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
    </div>
    <div class="modal-body">
        <form>
            <table class="table">
                <tr>
                    <td>学段</td>
                    <td style="width: 40%">
                        <select class="form-control" ng-options="stage.id as stage.name for stage in stageList" ng-model="form.fk_stage" form-check="must" form-check-alert="请选择学段！">
                            <option value="">==请选择==</option>
                        </select>
                    </td>
                    <td>课程名</td>
                    <td style="width: 40%">
                        <input type="text" class="form-control" placeholder="课程名" ng-model="form.name" form-check="must" form-check-alert="请输入课程名">
                    </td>
                </tr>

                <tr>
                    <td>课程代码</td>
                    <td>
                        <input type="text" class="form-control" placeholder="课程代码" ng-model="form.code" form-check="must" form-check-alert="请输入课程代码">
                    </td>
                    <td>教研室</td>
                    <td>
                        <select id="office_select" class="selectpicker show-tick form-control" ng-model="form.fk_organization">
                            <option value="">==请选择==</option>
                            <option ng-repeat="office in officeList" value="{{office.id}}">{{office.name}}</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td>课程类型</td>
                    <td>
                        <select class="form-control" ng-model="form.type">
                            <option value="">==请选择==</option>
                            <option ng-repeat="kclx in kclxList" value="{{kclx.id}}">{{kclx.name}}</option>
                        </select>
                    </td>
                    <td>课程分类</td>
                    <td>
                        <select class="form-control" ng-model="form.classification">
                            <option value="">==请选择==</option>
                            <option ng-repeat="kcfl in kcflList" value="{{kcfl.id}}">{{kcfl.name}}</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td>周课时</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.work_time">
                    </td>
                    <td>理论学时</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.theoretical_hours">
                    </td>
                </tr>

                <tr>
                    <td>实践学时</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.practice_hours">
                    </td>
                    <td>总学时</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.total_hours">
                    </td>
                </tr>

                <tr>
                    <td>学分</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.credit">
                    </td>
                    <td>考核形式</td>
                    <td>
                        <select class="form-control" ng-model="form.exam_type">
                            <option value="">==请选择==</option>
                            <option value="1">考试</option>
                            <option value="2">考查</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td colspan="4">全国库</td>
                </tr>

                <tr>
                    <td>开设单位</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.unit_qg">
                    </td>
                    <td>考核方式</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.examination_qg">
                    </td>
                </tr>

                <tr>
                    <td>授课方式</td>
                    <td>
                        <input type="text" class="form-control" ng-model="form.teaching_qg">
                    </td>
                    <td>课程类别</td>
                    <td>
                        <select class="form-control" ng-model="form.type_qg">
                            <option value="">==请选择==</option>
                            <option ng-repeat="kclbQg in kclbQgList" value="{{kclbQg.id}}">{{kclbQg.name}}</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td>课程性质</td>
                    <td>
                        <select class="form-control" ng-model="form.nature_qg">
                            <option value="">==请选择==</option>
                            <option ng-repeat="kcxzQg in kcxzQgList" value="{{kcxzQg.id}}">{{kcxzQg.name}}</option>
                        </select>
                    </td>
                    <td>课程属性</td>
                    <td>
                        <select class="form-control" ng-model="form.attribute_qg">
                            <option value="">==请选择==</option>
                            <option ng-repeat="kcsxQg in kcsxQgList" value="{{kcsxQg.id}}">{{kcsxQg.name}}</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td>课程分类</td>
                    <td>
                        <select class="form-control" ng-model="form.classification_qg">
                            <option value="">==请选择==</option>
                            <option ng-repeat="kcflQg in kcflQgList" value="{{kcflQg.id}}">{{kcflQg.name}}</option>
                        </select>
                    </td>
                    <td>学科类别</td>
                    <td>
                        <select class="form-control" ng-model="form.category_qg">
                            <option value="">==请选择==</option>
                            <option ng-repeat="xklbQg in xklbQgList" value="{{xklbQg.id}}">{{xklbQg.name}}</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td>是否制定<br>课程标准</td>
                    <td>
                        <select class="form-control" ng-model="form.ifstandard_qg">
                            <option value="">==请选择==</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </form>
    </div>
    <div class="modal-footer">
        <button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存
        </button>
    </div>
</div>